package com.lw.biz.dal.dao;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.lw.biz.dal.entity.BizCategory;
import com.lw.biz.dal.mapper.BizCategoryMapper;

@Repository
public class BizCategoryDao {
	
	@Autowired
	private BizCategoryMapper mapper;
	
	public BizCategory getCategory(Long id){
		return mapper.selectByPrimaryKey(id);
	}
	
	public List<BizCategory>selectAll(){
		return mapper.selectAll();
	}
}
